<?php

if (!isset($path[0])) return 0; // return 0 indicates that the default page should be displayed

elseif (in_array($path[0], array('login', 'logout', 'register', 'profile', 'reset-password')) and !isset($path[1])) {
	header('Expires: ' . date('r', time()));
	header('Cache-control: no-cache must-revalidate');
	header('Pragma: no-cache');
	header('X-Robots-Tag: noindex');
	require(dirname(__FILE__) . '/' . $path[0] . '.php');
}
